

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<title>Device List</title>
</head>
<body>
<div class="nav"><span class="menuButton"><a class="home"
	href="${createLinkTo(dir:'')}">Home</a></span> <span class="menuButton"><g:link
	class="create" action="create">New Device</g:link></span></div>
<div class="body">
<h1>Device List</h1>
<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>
<div class="list">
<table>
	<thead>
		<tr>

			<g:sortableColumn property="id" title="Id" />

			<g:sortableColumn property="notifyEmail" title="Notify Email" />

			<g:sortableColumn property="notifyAction" title="Notify Action" />

			<g:sortableColumn property="allowNotify" title="Allow Notify" />

			<g:sortableColumn property="codeVersion" title="Code Version" />

			<g:sortableColumn property="dateCreated" title="Date Created" />

			<th>Map</th>

		</tr>
	</thead>
	<tbody>
		<g:each in="${deviceList}" status="i" var="device">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

				<td><g:link action="show" id="${device.id}">${device.id?.encodeAsHTML()}</g:link></td>

				<td>${device.notifyEmail?.encodeAsHTML()}</td>

				<td>${device.notifyAction?.encodeAsHTML()}</td>

				<td>${device.allowNotify?.encodeAsHTML()}</td>

				<td>${device.codeVersion?.encodeAsHTML()}</td>

				<td>${device.dateCreated?.encodeAsHTML()}</td>

				<td><span class="button"><g:link controller="track"
					action="track" id="${device.id}"> Map</g:link> </span></td>

			</tr>
		</g:each>
	</tbody>
</table>
</div>
<div class="paginateButtons"><g:paginate total="${Device.count()}" />
</div>
</div>
</body>
</html>
